﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace Nakio.SystemAdministration.CustomClasses
{
    [Serializable]
    public class CustomFileInfo
    {
        public Bitmap Icon { get; private set; }
        public string Name { get; private set; }
        public long? Size { get; private set; }
        public string Type { get; private set; }
        public DateTime DateModified { get; private set; }

        public CustomFileInfo(string fullName, string name, long? size, DateTime dateModified)
        {
            
            Icon = Win32Interop.GetSmallIconFile(fullName);
            Name = name;
            Size = size;
            Type = Win32Interop.GetFileType(fullName);
            DateModified = dateModified;
        }
    }
}
